ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel.Validation Namespace / ValidationUtils Class / ValidateLength Method / ValidateLength(Length,Length[]) Method
A GrapeCity.ActiveReports.PageReportModel.Length value to validate.
The additional allowed GrapeCity.ActiveReports.PageReportModel.Length values.
Example

In This Topic
    ValidateLength(Length,Length[]) Method
    In This Topic
    Validates a length value against the RDL defined min/max length defaults ("0in","160in").
    Syntax
    'Declaration
     
    Public Overloads Shared Function ValidateLength( _
       ByVal value As Length, _
       ByVal ParamArray extraValues() As Length _
    ) As Length
    public static Length ValidateLength( 
       Length value,
       params Length[] extraValues
    )

    Parameters

    value
    A GrapeCity.ActiveReports.PageReportModel.Length value to validate.
    extraValues
    The additional allowed GrapeCity.ActiveReports.PageReportModel.Length values.
    Exceptions
    ExceptionDescription
    Throws if the value is out of range limit.
    Example
    Length value = new Length("2in");
    ValidationUtils.ValidateLength(value, new Length("200in"));
    See Also